<h1>Listing organizations</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Domain</th>
    <th>Phone</th>
    <th>Enabled</th>
  </tr>

<% @organizations.each do |organization| %>
  <tr>
    <td><%=h organization.name %></td>
    <td><%=h organization.domain %></td>
    <td><%=h organization.phone %></td>
    <td><%=h organization.enabled %></td>
    <td><%= link_to 'Show', organization %></td>
    <td><%= link_to 'Edit', edit_organization_path(organization) %></td>
    <td><%= link_to 'Destroy', organization, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New organization', new_organization_path %>